package org.yuri.phoneassistant.m3u8dvideo.service;

import com.yuri.platform.core.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.yuri.phoneassistant.m3u8dvideo.entity.M3u8Video;
import org.yuri.phoneassistant.m3u8dvideo.mapper.M3u8ServerMapper;

import java.util.List;

@Service
public class M3u8ServerService extends BaseService<M3u8ServerMapper, M3u8Video> {

    public List<M3u8Video> findAllList(M3u8Video m3u8Video) {
        return super.mapper.findAllList(m3u8Video);
    }

    public int save(M3u8Video video) {
        return super.save(video);
    }

    public int saveAll(List<M3u8Video> videoList) {
        System.out.println(videoList);
        return super.mapper.saveAll(videoList);
    }

    public M3u8Video get(M3u8Video m3u8Video) {
        return super.mapper.get(m3u8Video);
    }
}
